<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?php echo base_url() ?>js/wufoo.js"></script>

<!-- CSS -->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />

<div id="container">
	<legend class="legend">
		Hasil Rekap Data
	</legend>
	
	<div>
		<?php echo anchor(site_url('data_rekap/menu_rekap'),img(array('src'=>'images/main/ic_back.png','border'=>'0','alt'=>'','width'=>'20px','height'=>'20px','vertical-align'=>'middle','margin-right'=>'10px')).'Kembali ke menu rekapitulasi','Menampilkan halaman menu rekapitulasi'); ?>
	</div>
	
	<div class="separator">
	</div>

 <!-- Konten -------------------------------------------------------------------------->
 <div id="contentform_caridata">
 	<div class="ipkd_f">
		<span>Ijin Pemakaian Kekayaan Daerah</span>
	</div>
	<? $no=1;?>
	<table id="table-2">
	<thead>
	<th>No.</th>
	<th>Nama Pemohon</th>
	<th>Alamat</th>
	<th>Tanggal Permohonan</th>
	<th>Tanggal Ijin</th>
	<th>No Ijin</th>
	<th>Lokasi</th>
	<th>Kecamatan</th>
	<th>Kelurahan</th>
	</thead>
	<?php foreach ($program_ipkd as $row) {?>
	<tr>
	<td>
	<?php echo $no;?>
	</td>
	<td>
	<?php echo $row->NAMA_PEMOHON;?>
	</td>
	<td>
	<?php echo $row->ALAMAT_PEMOHON;?>
	</td>
	<td>
	<?php echo $row->TGL_PERMOHONAN;?>
	</td>
	<td>
	<?php echo $row->TGL_IJIN;?>
	</td>
	<td>
	<?php echo $row->NO_IJIN;?>
	</td>
	<td>
	<?php echo $row->LOKASI?>
	</td>
	<td>
	<?php echo $row->KECAMATAN;?>
	</td>
	<td>
	<?php echo $row->KELURAHAN;?>
	</td>
	</tr>
	<? $no++;
	}?>
	</table>
	<br>
	<div class="ipkd_f">
		<span>Peil Banjir</span>
	</div>
	<? $now=1;?>
	<table id="table-2">
	<thead>
	<th>No.</th>
	<th>Nama Pemohon</th>
	<th>Alamat</th>
	<th>Tanggal Permohonan</th>
	<th>Tanggal Ijin</th>
	<th>No Ijin</th>
	<th>Lokasi</th>
	<th>Kecamatan</th>
	<th>Kelurahan</th>
	</thead>
	<?php foreach ($program_dpb as $row1) {?>
	<tr>
	<td>
	<?php echo $now;?>
	</td>
	<td>
	<?php echo $row1->NAMA_PEMOHON;?>
	</td>
	<td>
	<?php echo $row1->ALAMAT_PEMOHON;?>
	</td>
	<td>
	<?php echo $row1->TGL_PERMOHONAN;?>
	</td>
	<td>
	<?php echo $row1->TGL_IJIN;?>
	</td>
	<td>
	<?php echo $row1->NO_IJIN;?>
	</td>
	<td>
	<?php echo $row1->LOKASI?>
	</td>
	<td>
	<?php echo $row1->KECAMATAN;?>
	</td>
	<td>
	<?php echo $row1->KELURAHAN;?>
	</td>
	</tr>
	<? $now++;
	}?>
	</table>

	<br>

	<div class="ipkd_f">
		<span>Batas Sempadan Air</span>
	</div>
	<? $nos=1;?>
	<table id="table-2">
	<thead>
	<th>No.</th>
	<th>Nama Pemohon</th>
	<th>Alamat</th>
	<th>Tanggal Permohonan</th>
	<th>Tanggal Ijin</th>
	<th>No Ijin</th>
	<th>Lokasi</th>
	<th>Kecamatan</th>
	<th>Kelurahan</th>
	</thead>
	<?php foreach ($program_dibsa as $row2) {?>
	<tr>
	<td>
	<?php echo $nos;?>
	</td>
	<td>
	<?php echo $row2->NAMA_PEMOHON;?>
	</td>
	<td>
	<?php echo $row2->ALAMAT_PEMOHON;?>
	</td>
	<td>
	<?php echo $row2->TGL_PERMOHONAN;?>
	</td>
	<td>
	<?php echo $row2->TGL_IJIN;?>
	</td>
	<td>
	<?php echo $row2->NO_IJIN;?>
	</td>
	<td>
	<?php echo $row2->LOKASI?>
	</td>
	<td>
	<?php echo $row2->KECAMATAN;?>
	</td>
	<td>
	<?php echo $row2->KELURAHAN;?>
	</td>
	</tr>
	<? $nos++;
	}?>
	</table>
</div>
</div><!--container-->